//
//  APIClient.h
//  FinanceProject
//
//  Created by 陈显摆 on 2025/1/15.
//

#import <AFNetworking/AFNetworking.h>

NS_ASSUME_NONNULL_BEGIN

@class XYUploadParam;

typedef NS_ENUM(NSUInteger,HttpRequestType) {
    
    HttpRequestTypeGet = 0,
    HttpRequestTypePost
};

@interface APIClient : AFHTTPSessionManager

+ (instancetype)sharedInstance;

+ (NSMutableDictionary *)creatAPIDictionary;

+ (NSString *)getQueryURLStringWithParam:(NSDictionary *)param URLString:(NSString *)URLStr;

- (void)requestWithURLString:(NSString *)URLString parameters:(id)parameters type:(HttpRequestType)type success:(void (^)(id responseObject, NSString *msg ,NSInteger code))success failure:(void (^)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
